{template header}
<script type="text/javascript" src="{SITE_URL}js/ueditor/editor_config.js"></script>
<script type="text/javascript" src="{SITE_URL}js/ueditor/editor_all.js"></script>
<script type="text/javascript" src="{SITE_URL}js/ueditor/third-party/SyntaxHighlighter/shCore.js"></script>
<link rel="stylesheet" href="{SITE_URL}js/ueditor/themes/default/ueditor.css"/>
<link rel="stylesheet" href="{SITE_URL}js/ueditor/third-party/SyntaxHighlighter/shCoreDefault.css"/>
<div class="content">
    <div class="dh">
        <a href="{SITE_URL}">{$setting['site_name']}</a>
        <!--{loop $navlist $nav}-->
        &gt; <a href="{url category/view/$nav['id']}">{$nav['name']}</a>
        <!--{/loop}--> &gt; 
        <a href="{url question/view/$qid}">{$question['title']}</a>&gt; 编辑问题
    </div>
    <div class="left1">
        <div class="leftt">
            <ul>
                <li class="a1"></li>
                <li class="a2"><div class="juzhong">编辑问题</div></li>
                <li class="a3"></li>
            </ul>
        </div>
        <div class="clr"></div>
        <div class="leftc">
            <form name="questionform" onsubmit="return check_form();" action="{url question/edit}" method="post" >
                <input type="hidden" value="{$qid}" name="qid" />
                <div class="tiwen">
                    <div style="padding-left:10px;margin-bottom: 10px;"><input type="text"  maxlength="100" size="65" name="title" value="{$question['title']}" id="mytitle"  class="input1"  /></div>
                    <script type="text/plain" id="mycontent" name="content" style="width:720px;padding-left:10px;">{$question['description']}</script>
                    <div style="float:right;margin-right:12px;padding-top: 10px;padding-bottom: 20px;"><input name="submit" type="submit" class="button4" value="提&nbsp交"/>{$question['content']}</div>
                    <div class="clr"></div>
                </div>
            </form>
        </div>
        <div class="clr"></div>
        <div class="leftb"></div>
    </div>
    <div class="right1">
        <div class="gg">
            <div class="ggtitle">
                <ul>
                    <li class="gga11"></li>
                    <li class="gga21">
                        <div class="juzhong">&nbsp;知道小贴士</div>
                    </li>
                    <li class="gga31"></li>
                </ul>
            </div>
            <div class="clr"></div>
            <div class="ggcon">
                <ul>
                    <li><a target="_blank" title="如何提问" href="{url index/help}#如何提问">如何提问</a></li>
                    <li><a target="_blank" title="如何回答" href="{url index/help}#如何回答">如何回答</a></li>
                    <li><a target="_blank" title="如何获得积分" href="{url index/help}#如何获得积分">如何获得积分</a></li>
                    <li><a target="_blank" title="如何处理问题" href="{url index/help}#如何处理问题">如何处理问题</a></li>
                </ul>
            </div>
            <div class="ggbuttom">
                <ul>
                    <li class="ggba1"></li>
                    <li class="ggba2"></li>
                    <li class="ggba3"></li>
                </ul>
            </div>
            <div class="clr"></div>
        </div>
    </div>
</div>
<div class="clr"></div>
<script type="text/javascript">
    var mycontent = new baidu.editor.ui.Editor({toolbars:[[{$toolbars}]],minFrameHeight:300,wordCount:{$setting['editor_wordcount']},elementPathEnabled:{$setting['editor_elementpath']}});
    mycontent.render("mycontent");
    function check_form(){
        mycontent.sync();
        var title = ("#title").val();
        if($.trim(title) == ''){
            alert("问题标题不能为空!");
            return false;
        }
        return true;
        
    }
</script>
{template footer}
